import { _decorator, Component, Node } from 'cc';
import { fly } from './fly';
const { ccclass, property } = _decorator;

@ccclass('click_fly')
export class click_fly extends Component {
	@property(fly)
	brid:fly = null
    start() {
		this.node.on(Node.EventType.TOUCH_START,()=>{
				this.brid.fly()
		})
    }

    update(deltaTime: number) {
        
    }
}

